import { IEngineView } from "../cfw/engine/IEngineView";
import { Component } from "cc"
export class EngineView extends Component implements IEngineView {


    setVisible(f: boolean): void {
        this.getNode().active = f;
    }

    exit(): void {
        this.getNode().destroy();
    }

    getNode() {
        return this.node
    }

    get isValid(): boolean {
        return this.node.isValid;
    }

    setOrder(zIndex: number): void {

    }

    setParent(parent: any): void {
        this.getNode().parent = parent;
    }
}